home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / ML_BME1.ZIP / RIPPLES / JUMPS.INC next >
Encoding:
Text File  |  1996-09-22  |  2.5 KB  |  103 lines

  1. ; **** Macros ****
  2. ;----------------------------------------------------------------------------
  3. ; First of all: I read somewhere into a document file that the Intel's theory
  4. ; about short jumps and the extra ticks caused by the next instruction's size
  5. ; after a normal short jump IS NOT CORRECT. I was stunned, because all this
  6. ; time I tried to optimize my programs according to this wrong theory... So
  7. ; I checked this thing out and I was stunned again: INDEED, THE THEORY IS NOT
  8. ; CORRECT. So I wrote this little include file here to use it in my future
  9. ; asm productions. So: TASM's NOPs are garbage ! They slow down the code,
  10. ; instead of accelerating it. The phrase with even addresses is also a shit.
  11. ; Don't believe what they say about this, try it by yourself and you will
  12. ; see w/ your own eyes they are wrong.
  13. ; ... btw, sjxx means : "short jump if ...xx..."     :)
  14. ;----------------------------------------------------------------------------
  15. ; version 0.0000000001E-9
  16. ; written by Maple Leaf as an alternative for TASM's short jumps
  17. ;
  18.  
  19. sje     macro    dist
  20.         db       74h
  21.         db       dist-$-1
  22.         endm
  23.  
  24. sjne    macro    dist
  25.         db       75h
  26.         db       dist-$-1
  27.         endm
  28.  
  29. sjl     macro    dist
  30.         db       7Ch
  31.         db       dist-$-1
  32.         endm
  33.  
  34. sjle    macro    dist
  35.         db       7Eh
  36.         db       dist-$-1
  37.         endm
  38.  
  39. sjg     macro    dist
  40.         db       7Fh
  41.         db       dist-$-1
  42.         endm
  43.  
  44. sjge    macro    dist
  45.         db       7Dh
  46.         db       dist-$-1
  47.         endm
  48.  
  49. sjz     macro    dist
  50.         db       74h
  51.         db       dist-$-1
  52.         endm
  53.  
  54. sjnz    macro    dist
  55.         db       75h
  56.         db       dist-$-1
  57.         endm
  58.  
  59. sjo     macro    dist
  60.         db       70h
  61.         db       dist-$-1
  62.         endm
  63.  
  64. sjno    macro    dist
  65.         db       71h
  66.         db       dist-$-1
  67.         endm
  68.  
  69. sjcxz   macro    dist
  70.         db       0E3h
  71.         db       dist-$-1
  72.         endm
  73.  
  74. sja     macro    dist
  75.         db       077h
  76.         db       dist-$-1
  77.         endm
  78.  
  79. sjae    macro    dist
  80.         db       073h
  81.         db       dist-$-1
  82.         endm
  83.  
  84. sjb     macro    dist
  85.         db       072h
  86.         db       dist-$-1
  87.         endm
  88.  
  89. sjbe    macro    dist
  90.         db       076h
  91.         db       dist-$-1
  92.         endm
  93.  
  94. sjc     macro    dist
  95.         db       072h
  96.         db       dist-$-1
  97.         endm
  98.  
  99. sjnc    macro    dist
  100.         db       073h
  101.         db       dist-$-1
  102.         endm
  103.